package com.ljy.tkuser.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户登录表
 * </p>
 *
 * @author testjava
 * @since 2021-12-27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ljy_big_user")
@ApiModel(value="LjyBigUser对象", description="用户登录表")
public class LjyBigUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "西综用户id")
    @TableField(value = "westernmd_1011_userid")
    private Integer westernmd1011Userid;

    @ApiModelProperty(value = "加密")
    private String mobileDesc;

    private String nickname;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "随机获取对密码二次加密")
    private Integer passwordSalt;

    @ApiModelProperty(value = "新头像( 相对路径 )，旧版URL")
    private String avatar;

    @ApiModelProperty(value = "用户状态 0:禁止登录 1:允许登录")
    @TableLogic(value = "1",delval = "0")
    @TableField(fill = FieldFill.INSERT)
    private Boolean status;

    @ApiModelProperty(value = "登陆时间")
    private Integer lastTime;

    @ApiModelProperty(value = "各个appid")
    private String uids;

    @ApiModelProperty(value = "考研学校id")
    private Integer postgraduateId;

    @ApiModelProperty(value = "考研院校名称")
    private String postgraduateName;

    @ApiModelProperty(value = "考研院校专业id")
    private Integer postgraduateMajorId;

    @ApiModelProperty(value = "考研院校名称")
    private String postgraduateMajorName;

    @ApiModelProperty(value = "本科院校id")
    private Integer collegesId;

    @ApiModelProperty(value = "本科院校名称")
    private String collegesName;

    @ApiModelProperty(value = "本科专业id")
    private Integer majorId;

    @ApiModelProperty(value = "本科专业名称")
    private String majorName;

    @ApiModelProperty(value = "工作单位/医院")
    private String workUnitHospital;

    @ApiModelProperty(value = "学历")
    private String education;

    @ApiModelProperty(value = "医院")
    private String hospital;

    @ApiModelProperty(value = "考试时间")
    private Integer testTime;

    @ApiModelProperty(value = "工作时间")
    private String workTime;

    @ApiModelProperty(value = "是否可以编辑昵称 0:是 1：否")
    private Boolean isEdit;

    @ApiModelProperty(value = "是否是代理 （1 是 0 否）")
    private Boolean isAgent;

    @ApiModelProperty(value = "是否为官方账号（1:是  0:否）")
    private Boolean isOfficial;

    @ApiModelProperty(value = "身份，二进制，从右往左，1：会员，2：回复数，3：发帖数")
    private Boolean identity;

    @ApiModelProperty(value = "uuid")
    private String uuid;

    @ApiModelProperty(value = "最后一次登录的app_id，如果是合并版，后面会有 _merge")
    private String lastAppId;


    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;


}
